home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / oji / nsIJVMConfigManager.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  8KB  |  269 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIJVMConfigManager.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIJVMConfigManager_h__
  6. #define __gen_nsIJVMConfigManager_h__
  7.  
  8.  
  9. #ifndef __gen_nsIArray_h__
  10. #include "nsIArray.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIFile_h__
  14. #include "nsIFile.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. #define NS_JVMCONFIGMANAGER_CID                      \
  22. { /* 4a68cee9-6f07-4950-b441-a1ce6a082e2f */         \
  23.     0x4a68cee9,                                      \
  24.     0x6f07,                                          \
  25.     0x4950,                                          \
  26.     {0xb4, 0x41, 0xa1, 0xce, 0x6a, 0x08, 0x2e, 0x2f} \
  27. }
  28.  
  29. /* starting interface:    nsIJVMConfig */
  30. #define NS_IJVMCONFIG_IID_STR "3e333e20-b190-42d8-b993-d5fa435e46c4"
  31.  
  32. #define NS_IJVMCONFIG_IID \
  33.   {0x3e333e20, 0xb190, 0x42d8, \
  34.     { 0xb9, 0x93, 0xd5, 0xfa, 0x43, 0x5e, 0x46, 0xc4 }}
  35.  
  36. /**
  37.  * This interface contains information for the Java installation.
  38.  */
  39. class NS_NO_VTABLE nsIJVMConfig : public nsISupports {
  40.  public: 
  41.  
  42.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJVMCONFIG_IID)
  43.  
  44.   /* readonly attribute AString version; */
  45.   NS_IMETHOD GetVersion(nsAString & aVersion) = 0;
  46.  
  47.   /* readonly attribute AString type; */
  48.   NS_IMETHOD GetType(nsAString & aType) = 0;
  49.  
  50.   /* readonly attribute AString OS; */
  51.   NS_IMETHOD GetOS(nsAString & aOS) = 0;
  52.  
  53.   /* readonly attribute AString arch; */
  54.   NS_IMETHOD GetArch(nsAString & aArch) = 0;
  55.  
  56.   /* readonly attribute nsIFile path; */
  57.   NS_IMETHOD GetPath(nsIFile * *aPath) = 0;
  58.  
  59.   /* readonly attribute nsIFile mozillaPluginPath; */
  60.   NS_IMETHOD GetMozillaPluginPath(nsIFile * *aMozillaPluginPath) = 0;
  61.  
  62.   /* readonly attribute AString description; */
  63.   NS_IMETHOD GetDescription(nsAString & aDescription) = 0;
  64.  
  65. };
  66.  
  67. /* Use this macro when declaring classes that implement this interface. */
  68. #define NS_DECL_NSIJVMCONFIG \
  69.   NS_IMETHOD GetVersion(nsAString & aVersion); \
  70.   NS_IMETHOD GetType(nsAString & aType); \
  71.   NS_IMETHOD GetOS(nsAString & aOS); \
  72.   NS_IMETHOD GetArch(nsAString & aArch); \
  73.   NS_IMETHOD GetPath(nsIFile * *aPath); \
  74.   NS_IMETHOD GetMozillaPluginPath(nsIFile * *aMozillaPluginPath); \
  75.   NS_IMETHOD GetDescription(nsAString & aDescription); 
  76.  
  77. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  78. #define NS_FORWARD_NSIJVMCONFIG(_to) \
  79.   NS_IMETHOD GetVersion(nsAString & aVersion) { return _to GetVersion(aVersion); } \
  80.   NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  81.   NS_IMETHOD GetOS(nsAString & aOS) { return _to GetOS(aOS); } \
  82.   NS_IMETHOD GetArch(nsAString & aArch) { return _to GetArch(aArch); } \
  83.   NS_IMETHOD GetPath(nsIFile * *aPath) { return _to GetPath(aPath); } \
  84.   NS_IMETHOD GetMozillaPluginPath(nsIFile * *aMozillaPluginPath) { return _to GetMozillaPluginPath(aMozillaPluginPath); } \
  85.   NS_IMETHOD GetDescription(nsAString & aDescription) { return _to GetDescription(aDescription); } 
  86.  
  87. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  88. #define NS_FORWARD_SAFE_NSIJVMCONFIG(_to) \
  89.   NS_IMETHOD GetVersion(nsAString & aVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVersion(aVersion); } \
  90.   NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  91.   NS_IMETHOD GetOS(nsAString & aOS) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOS(aOS); } \
  92.   NS_IMETHOD GetArch(nsAString & aArch) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetArch(aArch); } \
  93.   NS_IMETHOD GetPath(nsIFile * *aPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPath(aPath); } \
  94.   NS_IMETHOD GetMozillaPluginPath(nsIFile * *aMozillaPluginPath) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMozillaPluginPath(aMozillaPluginPath); } \
  95.   NS_IMETHOD GetDescription(nsAString & aDescription) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } 
  96.  
  97. #if 0
  98. /* Use the code below as a template for the implementation class for this interface. */
  99.  
  100. /* Header file */
  101. class nsJVMConfig : public nsIJVMConfig
  102. {
  103. public:
  104.   NS_DECL_ISUPPORTS
  105.   NS_DECL_NSIJVMCONFIG
  106.  
  107.   nsJVMConfig();
  108.  
  109. private:
  110.   ~nsJVMConfig();
  111.  
  112. protected:
  113.   /* additional members */
  114. };
  115.  
  116. /* Implementation file */
  117. NS_IMPL_ISUPPORTS1(nsJVMConfig, nsIJVMConfig)
  118.  
  119. nsJVMConfig::nsJVMConfig()
  120. {
  121.   /* member initializers and constructor code */
  122. }
  123.  
  124. nsJVMConfig::~nsJVMConfig()
  125. {
  126.   /* destructor code */
  127. }
  128.  
  129. /* readonly attribute AString version; */
  130. NS_IMETHODIMP nsJVMConfig::GetVersion(nsAString & aVersion)
  131. {
  132.     return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134.  
  135. /* readonly attribute AString type; */
  136. NS_IMETHODIMP nsJVMConfig::GetType(nsAString & aType)
  137. {
  138.     return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140.  
  141. /* readonly attribute AString OS; */
  142. NS_IMETHODIMP nsJVMConfig::GetOS(nsAString & aOS)
  143. {
  144.     return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146.  
  147. /* readonly attribute AString arch; */
  148. NS_IMETHODIMP nsJVMConfig::GetArch(nsAString & aArch)
  149. {
  150.     return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152.  
  153. /* readonly attribute nsIFile path; */
  154. NS_IMETHODIMP nsJVMConfig::GetPath(nsIFile * *aPath)
  155. {
  156.     return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158.  
  159. /* readonly attribute nsIFile mozillaPluginPath; */
  160. NS_IMETHODIMP nsJVMConfig::GetMozillaPluginPath(nsIFile * *aMozillaPluginPath)
  161. {
  162.     return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164.  
  165. /* readonly attribute AString description; */
  166. NS_IMETHODIMP nsJVMConfig::GetDescription(nsAString & aDescription)
  167. {
  168.     return NS_ERROR_NOT_IMPLEMENTED;
  169. }
  170.  
  171. /* End of implementation class template. */
  172. #endif
  173.  
  174.  
  175. /* starting interface:    nsIJVMConfigManager */
  176. #define NS_IJVMCONFIGMANAGER_IID_STR "ca29fff1-a677-493c-9d80-3dc60432212b"
  177.  
  178. #define NS_IJVMCONFIGMANAGER_IID \
  179.   {0xca29fff1, 0xa677, 0x493c, \
  180.     { 0x9d, 0x80, 0x3d, 0xc6, 0x04, 0x32, 0x21, 0x2b }}
  181.  
  182. /**
  183.  * This interface is a manager that can get information about Java
  184.  * installations.
  185.  */
  186. class NS_NO_VTABLE nsIJVMConfigManager : public nsISupports {
  187.  public: 
  188.  
  189.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IJVMCONFIGMANAGER_IID)
  190.  
  191.   /**
  192.      * This function returns a list of existing Java installations.
  193.      */
  194.   /* nsIArray getJVMConfigList (); */
  195.   NS_IMETHOD GetJVMConfigList(nsIArray **_retval) = 0;
  196.  
  197.   /**
  198.      * This function tells the browser to use a specific Java installation.
  199.      */
  200.   /* void setCurrentJVMConfig (in nsIJVMConfig jvmConfig); */
  201.   NS_IMETHOD SetCurrentJVMConfig(nsIJVMConfig *jvmConfig) = 0;
  202.  
  203. };
  204.  
  205. /* Use this macro when declaring classes that implement this interface. */
  206. #define NS_DECL_NSIJVMCONFIGMANAGER \
  207.   NS_IMETHOD GetJVMConfigList(nsIArray **_retval); \
  208.   NS_IMETHOD SetCurrentJVMConfig(nsIJVMConfig *jvmConfig); 
  209.  
  210. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  211. #define NS_FORWARD_NSIJVMCONFIGMANAGER(_to) \
  212.   NS_IMETHOD GetJVMConfigList(nsIArray **_retval) { return _to GetJVMConfigList(_retval); } \
  213.   NS_IMETHOD SetCurrentJVMConfig(nsIJVMConfig *jvmConfig) { return _to SetCurrentJVMConfig(jvmConfig); } 
  214.  
  215. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  216. #define NS_FORWARD_SAFE_NSIJVMCONFIGMANAGER(_to) \
  217.   NS_IMETHOD GetJVMConfigList(nsIArray **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetJVMConfigList(_retval); } \
  218.   NS_IMETHOD SetCurrentJVMConfig(nsIJVMConfig *jvmConfig) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentJVMConfig(jvmConfig); } 
  219.  
  220. #if 0
  221. /* Use the code below as a template for the implementation class for this interface. */
  222.  
  223. /* Header file */
  224. class nsJVMConfigManager : public nsIJVMConfigManager
  225. {
  226. public:
  227.   NS_DECL_ISUPPORTS
  228.   NS_DECL_NSIJVMCONFIGMANAGER
  229.  
  230.   nsJVMConfigManager();
  231.  
  232. private:
  233.   ~nsJVMConfigManager();
  234.  
  235. protected:
  236.   /* additional members */
  237. };
  238.  
  239. /* Implementation file */
  240. NS_IMPL_ISUPPORTS1(nsJVMConfigManager, nsIJVMConfigManager)
  241.  
  242. nsJVMConfigManager::nsJVMConfigManager()
  243. {
  244.   /* member initializers and constructor code */
  245. }
  246.  
  247. nsJVMConfigManager::~nsJVMConfigManager()
  248. {
  249.   /* destructor code */
  250. }
  251.  
  252. /* nsIArray getJVMConfigList (); */
  253. NS_IMETHODIMP nsJVMConfigManager::GetJVMConfigList(nsIArray **_retval)
  254. {
  255.     return NS_ERROR_NOT_IMPLEMENTED;
  256. }
  257.  
  258. /* void setCurrentJVMConfig (in nsIJVMConfig jvmConfig); */
  259. NS_IMETHODIMP nsJVMConfigManager::SetCurrentJVMConfig(nsIJVMConfig *jvmConfig)
  260. {
  261.     return NS_ERROR_NOT_IMPLEMENTED;
  262. }
  263.  
  264. /* End of implementation class template. */
  265. #endif
  266.  
  267.  
  268. #endif /* __gen_nsIJVMConfigManager_h__ */
  269.